/* eslint-disable */
export const LineOption = {
    tooltip: {
        trigger: 'item',
        formatter: '{a} <br/>{b} : {c}%'
    },
    color: ['#F5D564', '#7BC87D', '#60A1F8'],
    legend: {
        left: 'center',
        data: ['综合得分', '回访满意度', '按时办结率']
    },
    xAxis: {
        type: 'category',
        axisLabel: {
            textStyle: {
                color: '#999',
                fontSize: 12
            },
            show: true,
            interval: 0
        },
        axisLine: {
            show: false,
            lineStyle: {
                color: 'rgba(255,255,255,0)'
            }
        },
        splitLine: {
            show: false
        },
        data: ['一', '二', '三', '四', '五', '六', '七']
    },
    grid: {
        bottom: 25,
        top: 50,
        left: 50,
        right: 10
    },
    yAxis: {
        axisLabel: {
            textStyle: {
                color: '#999',
                fontSize: 12
            },
            show: true,
            interval: 0
        },
        axisLine: {
            show: false,
            lineStyle: {
                color: 'rgba(255,255,255,0)'
            }
        },

    },
    series: [{
            name: '综合得分',
            type: 'line',
            data: [12, 44, 49, 50, 55, 66, 75]
        },
        {
            name: '回访满意度',
            type: 'line',
            data: [55, 66, 88, 77, 79, 85, 99]
        },
        {
            name: '按时办结率',
            type: 'line',
            data: [11, 52, 45, 45, 74, 88, 90]
        }
    ]
}

export const TransverseLineOption = {
    tooltip: {
        trigger: 'axis',
        axisPointer: { // 坐标轴指示器，坐标轴触发有效
            type: 'line' // 默认为直线，可选为：'line' | 'shadow'
        }
    },
    xAxis: {
        type: 'value',
        boundaryGap: true,
        areaStyle: {},
        nameGap: 5,
        nameTextStyle: {
            color: '#999'
        },
        axisLabel: {
            textStyle: {
                color: '#999',
                fontSize: 12
            },
            show: true,
            interval: 0
        },
        axisLine: {
            show: true,
            lineStyle: {
                color: 'rgba(255,255,255,0.22)'
            }
        },
        splitLine: {
            lineStyle: {
                color: 'rgba(255,255,255,0.22)'
            }
        },
    },
    grid: {
        bottom: 25,
        top: 10,
        left: 120,
        right: 20
    },
    yAxis: {
        type: 'category',
        show: true,
        axisLabel: {
            textStyle: {
                color: '#999',
                fontSize: 12
            },
            show: true,
            interval: 0
        },
        splitLine: {
            show: false
        },
        axisLine: {
            show: false,
            lineStyle: {
                color: 'rgba(255,255,255,0.22)'
            }
        },
        data: []
    },
    series: [{
        data: [],
        type: 'bar',
        barWidth: 15,
        textStyle: {
            color: '#999'
        },
        label: {
            show: true,
            position: 'right',
            formatter: '{c}%',
            color: '#999'
        },
        itemStyle: {
            normal: {
                color: '#ADD0FF'
            }
        }
    }]
}
export const BarOption = {
    tooltip: {
        trigger: 'axis',
        axisPointer: { // 坐标轴指示器，坐标轴触发有效
            type: 'shadow' // 默认为直线，可选为：'line' | 'shadow'
        }
    },
    legend: {
        // data: ['进行中', '已超时','已完成']
    },
    color: ['#7BC87D','#F5D564', '#60A1F8'],
    grid: {
        bottom: 25,
        top: 50,
        left: 50,
        right: 10
    },
    yAxis: {
        type: 'value'
    },
    xAxis: {
        type: 'category',
        data: ['督办', '批示'],
        axisLine: {
            show: false,
            lineStyle: {
                color: 'rgba(255,255,255,0)'
            }
        },
    },
    series: [{
            name: '进行中',
            type: 'bar',
            barWidth: '30%',
            stack: '总量',
            label: {
                normal: {
                    show: true,
                    position: 'inside'
                }
            },
            data: [320, 302]
        },
        {
            name: '已超时',
            type: 'bar',
            stack: '总量',
            label: {
                normal: {
                    show: true,
                    position: 'inside'
                }
            },
            data: [120, 132]
        },
        {
            name: '已完成',
            type: 'bar',
            stack: '总量',
            label: {
                normal: {
                    show: true,
                    position: 'inside'
                }
            },
            data: [220, 182]
        }
    ]
}
